<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>"Hello World" YUI Setup Test</title> 
    <!-- (1) Load library scripts, courtesy of Yahoo! YUI. -->
    <script src="http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"></script>
    <script src="http://yui.yahooapis.com/2.6.0/build/element/element-beta-min.js" type="text/javascript"></script>
    <!-- New scripts for Ajax connectivity. -->
    <script src="http://yui.yahooapis.com/2.6.0/build/yahoo/yahoo-min.js" type="text/javascript"></script>
    <script src="http://yui.yahooapis.com/2.6.0/build/connection/connection-min.js" type="text/javascript"></script>
    <!-- New stylesheets and scripts for YUI testing. -->
    <!-- http://developer.yahoo.com/yui/articles/hosting/#configure (-min, Combine, Rollup, Fonts, YUI Test) -->
    <style type="text/css"> 
        <!-- turn off margin and padding on body as a foundation for YUI CSS treatments. -->
        body{margin:0;padding:0;}
    </style>
    <link href="http://yui.yahooapis.com/2.6.0/build/fonts/fonts-min.css" rel="stylesheet" type="text/css">
    <link href="http://yui.yahooapis.com/2.6.0/build/logger/assets/skins/sam/logger.css" rel="stylesheet" type="text/css">
    <link href="http://yui.yahooapis.com/2.6.0/build/yuitest/assets/skins/sam/yuitest.css" rel="stylesheet" type="text/css" >
    <script src="http://yui.yahooapis.com/2.6.0/build/logger/logger-min.js" type="text/javascript"></script>
    <script src="http://yui.yahooapis.com/2.6.0/build/yuitest/yuitest-min.js" type="text/javascript" ></script>
</head> 
<body class="yui-skin-sam"> 
 
<h1>"Hello World" YUI Setup Test</h1> 
 
<div class="exampleIntro"> 
	<p>
		The Trivial Test Example demonstrates basic usage of the YUI Test framework for testing browser-based JavaScript code. 
		A "Hello World" <code>TestCase</code> is created and added to a <code>TestSuite</code> object. 
  		The <code>TestRunner</code> runs the test once the page loads.
  	</p>			
</div> 
<div id="exampleLogger"></div> 
<script type="text/javascript"> 
    YAHOO.namespace("example.yuitest");
    YAHOO.example.yuitest.ExampleTestCase = new YAHOO.tool.TestCase({   
        setUp : function () {
            this.data = {
                example: "Hello World!"
            };
        },
        tearDown : function () {
            delete this.data;
        },
        testExample: function () {
            var Assert = YAHOO.util.Assert;            
            Assert.isObject(this.data);
            Assert.isString(this.data.example);
            Assert.areEqual("Hello World!", this.data.example);            
        }
    });
    
    YAHOO.example.yuitest.ExampleSuite = new YAHOO.tool.TestSuite("Example Suite");
    YAHOO.example.yuitest.ExampleSuite.add(YAHOO.example.yuitest.ExampleTestCase);
     
    YAHOO.util.Event.onDOMReady(function (){
        var logger = new YAHOO.tool.TestLogger("exampleLogger");
        YAHOO.tool.TestRunner.add(YAHOO.example.yuitest.ExampleSuite);
        YAHOO.tool.TestRunner.run();
    });
 
</script> 
</body> 
</html> 
